package com.clinic.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.PrimaryKeyJoinColumn;

@Entity
@PrimaryKeyJoinColumn(name = "sy_obj_id")
public class Secretary extends Patient {

	private static final long serialVersionUID = 1L;

	@Column(insertable = false, updatable = false)
	private int sy_obj_id;
	@Column(length = 1024)
	private String managed_clinics;
	@Column(length = 1024)
	private String managed_doctors;

	public Secretary() {
		super();
	}

	public Secretary(String obj_owner_name, String first_name,
			String last_name, String passwrd, String full_name, String address,
			String area, String sub_area, String email_address,
			boolean is_baby, String mobile_phone, String mobile_phone2,
			String home_phone, Date birthday, boolean gender, String mrn,
			String profile_status, int postalcode, boolean is_clinic_admin,
			String description, String profile_view, String managed_clinics,
			String managed_doctors) {
		super(obj_owner_name, first_name, last_name, passwrd, full_name,
				address, area, sub_area, email_address, is_baby, mobile_phone,
				mobile_phone2, home_phone, birthday, gender, mrn,
				profile_status, is_clinic_admin, description, profile_view,
				postalcode);
		this.managed_clinics = managed_clinics;
		this.managed_doctors = managed_doctors;
	}

	public int getSy_obj_id() {
		return sy_obj_id;
	}

	public String getManaged_clinics() {
		return managed_clinics;
	}

	public void setManaged_clinics(String managed_clinics) {
		this.managed_clinics = managed_clinics;
	}

	public String getManaged_doctors() {
		return managed_doctors;
	}

	public void setManaged_doctors(String managed_doctors) {
		this.managed_doctors = managed_doctors;
	}

	public void _toString() {
		System.out.println("Enter - _toString");
		super._toString();
		System.out.println("\nmanaged clinics: " + this.managed_clinics
				+ "\nmanaged doctors: " + this.managed_doctors);
		System.out.println("Exit - _toString");
	}
}